<template>
	<view class="count">
		<u-cell-group>
			<u-cell-item title="头像" :arrow="false">
				<u-upload :deletable="false" :show-progress="false" ref="uUpload" slot="right-icon" width="130" height="130" :action="action" :file-list="fileList"
					:max-count="1" custom-btn>
					<image style="width: 130rpx;height: 130rpx;" slot="addBtn" :src="avaImg" mode=""></image>
				</u-upload>
			</u-cell-item>
			<u-cell-item title="手机号码" :value="phone" @click="jump('/pages/user/change_phone')"/>
		</u-cell-group>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				action: 'http://www.example.com/upload', //服务器上传地址
				fileList: [],
				avaImg: "https://cdn.uviewui.com/uview/common/logo.png", //用户已有的头像
				phone: '15778682637',
				lists: []
			}
		},
		// 只有onReady生命周期才能调用refs操作组件
		onReady() {
			// 得到整个组件对象，内部图片列表变量为"lists"
			this.lists = this.$refs.uUpload.lists;
		},
		methods: {
			
		}
	}
</script>

<style>
</style>
